from HTMLTestRunner import HTMLTestRunner
import unittest
import os

unit = unittest.defaultTestLoader.discover(os.getcwd(),pattern="Test*.py")

runner = HTMLTestRunner.HTMLTestRunner(
    title="计算机的测试报告",
    description="加减乘除的测试",
    verbosity=1,
    stream=open(file="Calc.html",mode="w+",encoding="utf8")
)

runner.run(unit)